package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="RoomDetailRent"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class RoomDetailRent implements Serializable {

    /** identifier field */
    private Integer hroomId;

    /** nullable persistent field */
    private Integer rentId;

    /** nullable persistent field */
    private String purpose;

    /** nullable persistent field */
    private Double length;

    /** nullable persistent field */
    private Double width;

    /** nullable persistent field */
    private Double area;

    /** nullable persistent field */
    private Double price;

    /** nullable persistent field */
    private String hroomType;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** full constructor */
    public RoomDetailRent(Integer rentId, String purpose, Double length, Double width, Double area, Double price, String hroomType, String userId, String latestDate) {
        this.rentId = rentId;
        this.purpose = purpose;
        this.length = length;
        this.width = width;
        this.area = area;
        this.price = price;
        this.hroomType = hroomType;
        this.userId = userId;
        this.latestDate = latestDate;
    }

    /** default constructor */
    public RoomDetailRent() {
    }

    /** minimal constructor */
    public RoomDetailRent(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="HroomId"
     *             unsaved-value="0"
     *         
     */
    public Integer getHroomId() {
        return this.hroomId;
    }

    public void setHroomId(Integer hroomId) {
        this.hroomId = hroomId;
    }

    /** 
     *            @hibernate.property
     *             column="RentId"
     *             length="10"
     *         
     */
    public Integer getRentId() {
        return this.rentId;
    }

    public void setRentId(Integer rentId) {
        this.rentId = rentId;
    }

    /** 
     *            @hibernate.property
     *             column="Purpose"
     *             length="60"
     *         
     */
    public String getPurpose() {
        return this.purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    /** 
     *            @hibernate.property
     *             column="Length"
     *             length="53"
     *         
     */
    public Double getLength() {
        return this.length;
    }

    public void setLength(Double length) {
        this.length = length;
    }

    /** 
     *            @hibernate.property
     *             column="Width"
     *             length="53"
     *         
     */
    public Double getWidth() {
        return this.width;
    }

    public void setWidth(Double width) {
        this.width = width;
    }

    /** 
     *            @hibernate.property
     *             column="Area"
     *             length="53"
     *         
     */
    public Double getArea() {
        return this.area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    /** 
     *            @hibernate.property
     *             column="Price"
     *             length="53"
     *         
     */
    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    /** 
     *            @hibernate.property
     *             column="HroomType"
     *             length="6"
     *         
     */
    public String getHroomType() {
        return this.hroomType;
    }

    public void setHroomType(String hroomType) {
        this.hroomType = hroomType;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("hroomId", getHroomId())
            .toString();
    }

}
